checking if transformation is linear